package com.wuzheng.wisgo.sanitation.cloud.repository.mapper.transfer;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.wuzheng.wisgo.sanitation.cloud.model.transfer.pojo.TransferRouteDTO;
import com.wuzheng.wisgo.sanitation.cloud.repository.builder.transfer.TransferRouteBuilder;
import com.wuzheng.wisgo.sanitation.cloud.repository.entity.transfer.TransferRoute;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * <p>
 * 转运路线 Mapper 接口
 * </p>
 *
 * @author hoipang
 * @since 2019-12-06
 */
public interface TransferRouteMapper extends BaseMapper<TransferRoute> {

    /**
     * 查询转运路线特定信息分页列表
     * @param page
     * @param name
     * @return
     */
    @SelectProvider(type = TransferRouteBuilder.class, method = "buildPageTransferRouteDTOsSql")
    List<TransferRouteDTO> pageTransferRouteDTOs(Page page, @Param("name") String name);
}
